package com.authorization.demo.enums;

import lombok.Data;

/**
 * @Remarks:
 * @ClassName: TokenExceptionEnum
 * @Author: Micora
 * @CreateTime: 2022/7/29
 */
public enum TokenExceptionEnum {
    ERROR_OVERDUE(401, "登录过期"),
    TOKEN_ERROR(401, "token错误"),
    ERROR_NOT_HAVE_POWER(401,"权限不足");


    private Integer code;
    private String msg;

    TokenExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
